<?php
/**
 * Created by PhpStorm.
 * User: RatuoWeb1
 * Date: 2019/2/27
 * Time: 21:08
 */

namespace app\admin\validate;

class Question extends Common{
    protected $rule = [
       'subjectid' => 'integer',
        'qtypeid' => 'integer',
        'question' => 'require',
    ];
    protected $message = [
        'subjectid.integer' => '科目ID参数错误，请联系管理员',
        'qtypeid.integer' => '题型ID参数错误，请联系管理员',
        'question.require' => '请输入题目信息',
    ];
    protected $scence = [
        '1' => ['subjectid','qtypeid','question'],
        '2' => ['subjectid','qtypeid','question'],
        '3' => ['subjectid','qtypeid','question'],
        '4' => ['subjectid','qtypeid','question'],
    ];


}